/**
 * 格式化gender字段
 */
function EcShopGenderFormatter(value, row, index){
	var text;
	
	switch(value){
		case 2:
			text = '女';
			break;
		case 1:
			text = '男';
			break;
		default:
			text = '保密';
	}
	return text;
}

function EcShopDateFormatter(value, row, index){
	var d = value && value > 0 ? new Date(value * 1000) : null;
	var text = '';
	
	if(d){
		var year = d.getFullYear();
		
		var month = d.getMonth() + 1;
		if(month < 10){
			month = '0' + month;
		}
		
		var date = d.getDate();
		if(date < 10){
			date = '0' + date;
		}
		
		var hours = d.getHours();
		if(hours < 10){
			hours = '0' + hours;
		}
		
		var mins = d.getMinutes();
		if(mins < 10){
			mins = '0' + mins;
		}
		
		var seconds = d.getSeconds();
		if(seconds < 10){
			seconds = '0' + seconds;
		}
		
		text = year + "-" + month + "-" + date + ' ' + hours + ':' + mins + ':' + seconds;
	}
	
	return text;
}